﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using StructureMap;

namespace Universum.Infrastructure.Utils.Extensions
{
	/// <summary>
	/// Extensions for user details
	/// </summary>
	public static class UserDetailsExtensions
	{
		public static bool HasPicture(this HtmlHelper html)
		{
			return ObjectFactory.GetInstance<Universum.Model.Services.Personals.IPersonalService>().HasPicture;
		}
		public static string UserDescription(this HtmlHelper html)
		{
			return ObjectFactory.GetInstance<Universum.Model.Services.Personals.IPersonalService>().GetUserDescription();
		}
	}
}
